package com.info.zhiduoduo.repository.entity.crm;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: zhiduoduo
 * @author: LiTong
 * @create: 2020-11-03 16:40
 **/
@Data
@Accessors(chain = true)
@TableName("zdd_crm_customer")
public class CrmCustomer extends Model<CrmCustomer> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "cust_id", type = IdType.AUTO)
    private Integer custId;

    @TableField("cust_name")
    private String custName;

    @TableField("cust_source")
    private String custSource;

    @TableField("cust_decision_maker")
    private String custDecisionMaker;

    @TableField("cust_decision_maker_tel")
    private String custDecisionMakerTel;

    @TableField("cust_influence_people")
    private String custInfluencePeople;

    @TableField("cust_influence_people_tel")
    private String custInfluencePeopleTel;

    @TableField("cust_sponsor")
    private String custSponsor;

    @TableField("cust_sponsor_tel")
    private String custSponsorTel;

    @TableField("cust_level")
    private Integer custLevel;

    @TableField("cust_classify")
    private Integer custClassify;

    @TableField("cust_product")
    private String custProduct;

    @TableField("cust_tade")
    private String custTade;

    @TableField("cust_region")
    private String custRegion;

    @TableField("cust_addr")
    private String custAddr;

    @TableField("cust_person")
    private Integer custPerson;

    @TableField("cust_biz_id")
    private Integer custBizId;

    @TableField("cust_clue_id")
    private Integer custClueId;

    @TableField("cust_remarks")
    private String custRemarks;

    @TableField("channel_remarks")
    private String channelRemarks;

    @TableField("whether_school_enterprise")
    private String whetherSchoolEnterprise;

    @TableField("is_listed_company")
    private String isListedCompany;

    @TableField("annual_business")
    private int annualBusiness;

    @TableField("annual_profit")
    private int annualProfit;

    @TableField("annual_tax")
    private int annualTax;

    @TableField("annual_expenses")
    private int annualExpenses;

    @TableField("annual_overuse")
    private int annualOveruse;

    @TableField("annual_manpower")
    private int annualManpower;

    @TableField("staff_number")
    private int staffNumber;

    @TableField("staff_average_income")
    private int staffAverageIncome;

    @TableField("temporary_number")
    private int temporaryNumber;

    @TableField("cust_operator")
    private Integer custOperator;

    private Integer status;

    @TableField("cust_state")
    private Integer custState;

    @TableField("cust_flag")
    private Integer custFlag;

    private Date receivetime;

    private Date updatetime;

    private Date createtime;

    @TableField("follow_type")
    private int followType;

    @TableField("follow_describe")
    private String followDescribe;

    @TableField("no_follow_number")
    private int noFollowNumber;

    @TableField("update_follow_type")
    private int updateFollowType;

    @TableField("update_follow_type_time")
    private Date updateFollowTypeTime;

    @TableField("receive_number")
    private int receiveNumber;

    private Date releasetime;

    @TableField("release_number")
    private int releaseNumber;

    @TableField("compid")
    private int compid;

    @TableField("business_id")
    private Integer businessId;

    @Override
    protected Serializable pkVal() {
        return this.custId;
    }
}
